package com.zretc.emptraining.service;

import java.util.List;

import com.zretc.emptraining.dbtools.PageData;
import com.zretc.emptraining.entity.Teach;

public interface TeachService {
	/**
	 * 增加教员
	 * @param teach
	 * @return
	 */
	public boolean addTeach(Teach teach);
	/**
	 * 删除教员
	 * @param teachno
	 * @return
	 */
	public boolean delTeach(int teachno);
	/**
	 * 修改教员照片
	 * @param teach
	 * @return
	 */
	public boolean updPic(Teach teach);
	/**
	 * 修改教员信息
	 * @param teach
	 * @return
	 */
	public boolean updInfo(Teach teach);
	/**
	 * 分页查询教员信息
	 * @param page
	 * @param pageSize
	 * @param keyword
	 * @return
	 */
	// 根据教员名
	public PageData<Teach> getPageByTeachName(int page, int pageSize, String keyword);

	// 根据教员编号
	public PageData<Teach> getPageByteachNo(int page, int pageSize, String keyword);

	// 根据教员性别
	public PageData<Teach> getPageByteachSex(int page, int pageSize, String keyword);

	// 根据教员学历
	public PageData<Teach> getPageByteachXl(int page, int pageSize, String keyword);
	/**
	 * 获取所有的教员信息
	 * @return
	 */
	public List<Teach> getAllTeachers();
	/**
	 * 单个教员信息
	 * @param teachtel
	 * @return
	 */
	public List<Teach> getTeachByTel(String teachtel);
	/**
	 * 通过手机号 修改教员头像、自我描述
	 * @param Tel
	 * @param desc
	 * @param teacherPic
	 * @return
	 */
	public boolean updInfoByDesc(String Tel, String desc, String teacherPic);
}
